<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="fragments/_header :: _head('组织机构')"></head>
<body>
<div class="ok-body">
    <!--面包屑导航区域-->
    <div class="ok-body-breadcrumb">
            <span class="layui-breadcrumb">
                <a><cite>首页</cite></a>
                <a><cite>常用页面</cite></a>
                <a><cite>组织机构</cite></a>
            </span>
        <a class="layui-btn layui-btn-small" href="javascript:location.replace(location.href);" title="刷新">
            <i class="layui-icon layui-icon-refresh"></i>
        </a>
    </div>
    <!--模糊搜索区域-->
    <div class="layui-row">
        <form class="layui-form layui-col-md12 ok-search">
            <input class="layui-input" name="deptName" placeholder="请输入组织名" autocomplete="off">
            <button class="layui-btn" lay-submit="" lay-filter="search">
                <i class="layui-icon layui-icon-search"></i>
            </button>
        </form>
    </div>
    <!--工具栏-->
    <okToolbar>
        <button class="layui-btn" id="addDept" shiro:hasPermission="sys:dept:save">
            <i class="layui-icon">&#xe61f;</i>添加机构
        </button>
        <span>共有数据：<i id="countNum"></i> 条</span>
        <div class="layui-clear"></div>
    </okToolbar>
    <!--数据表格-->
    <table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
</div>
<!--js逻辑-->
<div th:include="fragments/_footer :: _footer"></div>
<script src="/js/system/dept/list.js"></script>
<!--模板-->
<script type="text/html" id="operationTpl">
    <button class="layui-btn layui-btn-xs" lay-event="add"><i class="layui-icon layui-icon-add-1" shiro:hasPermission="sys:dept:save"></i>添加</button>
    <button class="layui-btn layui-btn-xs layui-btn-warm" lay-event="edit"><i class="layui-icon layui-icon-edit" shiro:hasPermission="sys:dept:update"></i>编辑</button>
    <button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del"><i class="layui-icon layui-icon-delete" shiro:hasPermission="sys:dept:rm"></i>删除</button>
</script>
</body>
</html>